import request from '@/utils/request'

// 查询队伍排行榜列表
export function listTeamRank(query) {
  return request({
    url: '/applet/teamRank/list',
    method: 'get',
    params: query
  })
}

// 查询队伍排行榜详细
export function getTeamRank(id) {
  return request({
    url: '/applet/teamRank/' + id,
    method: 'get'
  })
}

// 新增队伍排行榜
export function addTeamRank(data) {
  return request({
    url: '/applet/teamRank',
    method: 'post',
    data: data
  })
}

// 修改队伍排行榜
export function updateTeamRank(data) {
  return request({
    url: '/applet/teamRank',
    method: 'put',
    data: data
  })
}

// 删除队伍排行榜
export function delTeamRank(id) {
  return request({
    url: '/applet/teamRank/' + id,
    method: 'delete'
  })
}
